<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Bootstrap 实例 - 悬停表格</title>
    <link rel="stylesheet" href="https://cdn.staticfile.net/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.net/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.net/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div style="text-align: center; width: 60%">
    <div>模板信息</div>
    <form class="form-horizontal" role="form">
        {% for arg in item.template_parm %}
        <div class="form-group">
            <label for="{{arg['key']}}" class="col-sm-2 control-label">{{arg['name']}}</label>
            {%if arg['kind']==1 %}
            <div class="col-sm-10">
                <input type="text" class="form-control" id="{{arg['key']}}" placeholder="请输入参数">
            </div>
            {%elif arg['kind']==2 %}
            <div class="col-sm-10">
                <input type="date" class="form-control" id="{{arg['key']}}" placeholder="请输入参数">
            </div>

            {% else %}
            <div class="col-sm-10">
                <select class="form-control">
                    {% for option in arg['value'] %}
                    <option>{{ option }}</option>
                    {% endfor %}
                </select>
            </div>
            {% endif %}
        </div>
        {% endfor %}
        <input type="submit" value="提交">
    </form>
</div>
</body>
</html>